from django.http import JsonResponse
from django.shortcuts import render
from app01.myforms.myforms import RegisterForm
from utils.tencent import sms


def send_sms_test(request):
    result = sms.send_sms_single('18146430212', 1117716, ['88888'])
    return JsonResponse(result)


def register(request):
    form = RegisterForm()
    return render(request, 'register.html', {'form':form})
